import { Navigate } from "react-router-dom"
import Login from "../Pages/Login/Login"
import Home from "../Pages/Home/Home"
import MainInfo from "../Pages/MainInfo/MainInfo"
import UserInfo from "../Pages/UserInfo/UserInfo"
 
const routes = [
  {
    path: "/", 
    element: <Navigate to="/login"></Navigate>
  },
  {
    path: "/login",
    element: <Login></Login>
  },
  {
    path: "/home",
    element: <Home></Home>,
    children:[
      {
        path: "/home/main",
        element: <MainInfo></MainInfo>
      }
    ]
  },
  {
    path: "/user",
    element: <Home></Home>,
    children:[
      {
        path: "/user/list",
        element: <UserInfo></UserInfo>
      }
    ]
  },
  
]
 
 
export default routes